338. Residence is established on the basis of physical presence without regard to intention.The status of resident is acquired by birth in Québec of a mother already having the status of resident of Québec.
However, a person who is:
(a) a landed immigrant;
(b) a repatriated Canadian;
(c) a Canadian returning to the country;
(d) a landed immigrant returning to the country;
(e) a Canadian citizen or his spouse who takes up residence in Canada for the first time;
(f) a member of the Canadian Armed Forces or of the Royal Canadian Mounted Police who has not acquired the status of resident of Québec;
(g) a prisoner who has not acquired the status of resident of Québec at the time of his incarceration in Québec;
as well as each of his dependents shall be deemed, after having resided for 3 months in Québec following his arrival, discharge or liberation, as the case may be, to be a resident of Québec.